import 'package:flutter/material.dart';
import 'package:flutter_app/components/layout.dart';

class GoogleStep1 extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: DarkHeadBar('谷歌验证码'),
        body: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 20.0),
          child: Column(
            children: [
              Expanded(
                  child: Column(
                children: [
                  SizedBox(
                    height: 100,
                  ),
                  Image.asset('assets/images/ic_logo_ga.png',width: 80,),
                  SizedBox(
                    height: 25,
                  ),
                  Text(
                    '安装谷歌身份验证器',
                    style: TextStyle(fontSize: 16, fontWeight: FontWeight.w500),
                  ),
                  SizedBox(
                    height: 10,
                  ),
                  Text(
                    '您需要确保手机里安装了谷歌身份验证器,如未安装请前往下载',
                    textAlign: TextAlign.center,
                    style: TextStyle(height: 2),
                  ),
                ],
              )),
              FlatButton(
                minWidth: MediaQuery.of(context).size.width,
                  onPressed: () {Navigator.pushNamed(context, '/google/step2');},
                  color: Colors.blueAccent,
                  textColor: Colors.white,
                  child: Text('下一步')
              )
            ],
          ),
        ));
  }
}
